//
//  TextFieldTableViewCell.m
//  beautyAccompany
//
//  Created by xiaocankeji on 15/11/25.
//  Copyright © 2015年 xiaocankeji. All rights reserved.
//

#import "TextFieldTableViewCell.h"

@implementation TextFieldTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _orderRowView = [[OrderRowView alloc] init];
        [self addSubview:_orderRowView];
        
        _textField = [[UITextField alloc] init];
        _textField.font = kFont(15);
        _textField.textColor = RGBA(100, 100, 100, 1);
        _textField.textAlignment = NSTextAlignmentRight;
        [self addSubview:_textField];
        
        
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _orderRowView.frame = CGRectMake(0, 0, 100, self.height);
    _textField.frame = CGRectMake(100, 0, DeviceWidth - 130, self.height);
    
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
